package com.ghpt.service.impl;
import com.ghpt.mapper.V2GMapper;
import com.ghpt.pojo.V2G;
import com.ghpt.service.V2GService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class V2GServiceImpl implements V2GService {
    @Autowired
    private V2GMapper v2GMapper;

    @Override
    public V2G findV2GById(Long id) {
        if (id != null) {
            return v2GMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(V2G v2G) {
        return v2GMapper.updateById(v2G);//更新成功为1否则为0
    }
}
